import request from "@/utils/request";

/*
* 获取表单数据
* */
export  function getList(current,size,inStockVO) {
    return request({
        url:"/business/inStock/getList",
        method:'post',
        params:{
            current,
            size
        },
        data:inStockVO
    })

}

/*根据ID查询订单详情*/

export  function getDetail(id,current) {
    return request({
        url:"/business/inStock/getDetail",
        method:'get',
        params:{
            id,
            current,
            size:3
        }
    })

}

/*入库*/
export function add(addInStockVO) {
    return request({
        url:'/business/inStock/add',
        method:"post",
        data:addInStockVO
    })
}

/*删除*/

export  function deleteInStocks(id) {
    return request({
        url:'/business/inStock/delete',
        method:'delete',
        params:{
            id
        }
    })

}

/*审批通过*/

export  function pass(id) {
    return request({
        url:'/business/inStock/pass',
        method:'get',
        params:{
            id
        }
    })

}

